﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using PCRemoteMobileVer;

namespace PCRemoteMoblieVer.Functions
{
    public partial class PowerPointPage : PhoneApplicationPage
    {
        public PowerPointPage()
        {
            InitializeComponent();
        }

        private void btNext_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            MainPage.SendCommand("SENDKEY_RIGHT");
        }

        private void btPrevious_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            MainPage.SendCommand("SENDKEY_LEFT");
        }

        private void btStarSlide_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            MainPage.SendCommand("SENDKEY_F5");
        }

        private void btEndPresentation_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            MainPage.SendCommand("SENDKEY_ESC");
        }

        private void viewScreen(object sender, EventArgs e)
        {
            NavigationService.Navigate(new Uri("/GamePage.xaml", UriKind.Relative));
        }

        private void openKeyboard(object sender, EventArgs e)
        {
            NavigationService.Navigate(new Uri("/KeyboardSimulator.xaml", UriKind.Relative));
        }
    }
}